<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">
                Quản lý khách hàng
            </h3>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index.html">Trang chủ</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li>
                    <a href="#">Khách hàng</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">Thêm mới khách hàng</a></li>
            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN EXAMPLE TABLE PORTLET-->
            <div class="portlet box light-grey">
                <div class="portlet-title">
                    <h4><i class="icon-plus-sign"></i>Thêm mới khách hàng</h4>
                    <div class="tools">
                        <a href="javascript:;" class="collapse"></a>
                    </div>
                </div>
                <div class="portlet-body form">
                    <!-- BEGIN FORM-->
                    <form action="/admin/customer/update/id/<?php echo $customer->id;?>" method="post" class="horizontal-form">
                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" for="firstName">Tên</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[firstname]" id="firstName" class="m-wrap span12" value="<?php echo $customer->firstname;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" for="lastName">Họ</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[lastname]" id="lastName" class="m-wrap span12" value="<?php echo $customer->lastname;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <div class="row-fluid">
	                        <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" for="password">Password</label>
                                    <div class="controls">
                                        <input type="password" name="Customer[password]" id="password" class="m-wrap span12" value="">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" >Country</label>
                                    <div class="controls">
                                        <select name="Customer[country_id]" class="span12 chosen" data-placeholder="Choose a Country" tabindex="1">
                                            <option value="">Country</option>
                                            <?php foreach($countryList as $country) {?>
                                                <option <?php if($country->country_id == $customer->country_id) echo 'selected=selected';?> value="<?php echo $country->country_id;?>"><?php echo $country->name?></option>
                                            <?php }
                                            ?>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <!--/row-->
                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" >Địa chỉ</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[street]" id="lastName" class="m-wrap span12" placeholder="" value="<?php echo $customer->street;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" >Thành phố</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[city]" class="m-wrap span12"  placeholder="" value="<?php echo $customer->city;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <!--/row-->
                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" >Bang</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[state]" class="m-wrap span12" value="<?php echo $customer->state;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" >Mã vùng</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[zipcode]" class="m-wrap span12" value="<?php echo $customer->zipcode;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <!--/row-->

                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" for="firstName">Email</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[email]" id="firstName" class="m-wrap span12" value="<?php echo $customer->email;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label" for="lastName">Điện thoại</label>
                                    <div class="controls">
                                        <input type="text" name="Customer[phone]" id="lastName" class="m-wrap span12" value="<?php echo $customer->phone;?>">
                                    </div>
                                </div>
                            </div>
                            <!--/span-->
                        </div>
                        <!--/row-->

                        <div class="form-actions">
                            <input type="hidden" name="Customer[id]" id="id" class="m-wrap span12" value="<?php echo $customer->id;?>">
                            <button type="submit" class="btn blue"><i class="icon-ok"></i> Lưu</button>
                            <button type="button" class="btn" onclick="window.location='/admin/customer/admin'">Hủy</button>
                        </div>
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
            <!-- END EXAMPLE TABLE PORTLET-->
        </div>
    </div>

    <!-- END PAGE CONTENT-->
</div>
<!-- END PAGE CONTAINER-->